package com.wr.hangzhounewlight.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wr.hangzhounewlight.obj.database.DeviceEntity;
import org.apache.ibatis.annotations.Insert;

/**
 * @author yuanzhizhuo
 * createDate 2025/11/8
 */
public interface DeviceMapper extends BaseMapper<DeviceEntity> {

    @Insert("""
            insert ignore into device (id, workshop, machine, screw)
            values (#{id}, #{workshop}, #{machine}, #{screw})
            """)
    int insertIgnore(String id, String workshop, String machine, String screw);

}
